# a={}
# a['aa']=[1,2]
# a['qq']=(1,3)
# print(a)
# print(dict.keys(a))
# print(dict.values(a))
#
#
# tup11 = ('physics', 'chemistry', 1997, 2000)
# print(tup11[0])
#
#
# list1=['physics', 'chemistry', 1997, 2000]
# print(list1[0])
# list1.append('ll')
# print(list1)

import time

# 格式化成2016-03-20 11:45:39形式
print(time.strftime("%Y-%m-%d %H:%M:%S"))

# 格式化成Sat Mar 28 22:24:24 2016形式
print(time.strftime("%a %b %d %H:%M:%S %Y", time.localtime()))

# 将格式字符串转换为时间戳
a = "Sat Mar 28 22:24:24 2016"
print(time.mktime(time.strptime(a, "%a %b %d %H:%M:%S %Y")))

print(time.time())